package com.henry.imkit

import com.henry.imkit.models.ConversationData
import com.henry.imkit.request.IMRequest

fun IMManager.getConversationsAV(onSuccess: ((list: List<ConversationData>) -> Unit)? = null,
                                 onError: OnErrorCallback? = null) {
    IMRequest.getConversations("av_chat", 1, 10000, { list: List<ConversationData>, i: Int ->

        onSuccess?.invoke(list)

    }, onError)
}